#!/usr/bin/python3
# -*- coding: utf-8 -*-

from flask import Flask


class Authorization(object):
    """用于进行用户授权的类。"""

    def init_app(
            self,
            app: Flask
    ):
        app.context_processor(self.__inject_account)

    def __inject_account(self) -> dict:
        return dict(
            theme={'name': 'darkly'}
        )
